package br.com.sampleProject.java;

import javax.faces.bean.RequestScoped;
import javax.inject.Named;

@Named
@RequestScoped
public class TextForm {

	private static final long serialVersionUID = 7446666753126359713L;
	private String nome;
	private String nomeMaxLength;

	TextForm() {
		this.nome = "Carlos Augusto Friedrich";
		this.nomeMaxLength = this.nome.substring(0, 10);
	}

	public String getCode() {
		return HighlightUtils.getPageHighlight(new String[] {"components/zion.ui.Text.xhtml"}, new Class[] {TextForm.class});
	}

	public String getNome() {
		return this.nome;
	}

	public void setNome(final String nome) {
		this.nome = nome;
	}

	public String getNomeMaxLength() {
		return this.nomeMaxLength;
	}

	public void setNomeMaxLength(final String nomeMaxLength) {
		this.nomeMaxLength = nomeMaxLength;
	}
}
